<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<style>
table tr td{ text-align:center;}
</style>
<title></title>
<script type="text/javascript">
$(document).ready(function(){
    $('[name = "check_article_list"]').click( function () {
	
	      if($(this).attr("checked"))
		  {
		       var operate_type = 'add'; 
		  }else
		  {
		       var operate_type = 'del';
		  }
		  
		  $.get("/wondershare/support_right_recommend.php?action=article_list", { type:'support_right',operate_type:operate_type,
		  start_value:$("#recommend_id").val(),operate_id:this.value,cat_id:$("#topic_cat_id").val()},
          function(data){
	
		  }); 
	 }); 
}); 
function get_checked_value()
{
  var  checked_value = '';
 $('[name = "check_article_list"]:checked').each(function(){
      if(checked_value == '')
	  {
	     checked_value = this.value;
	  }else
	  {
	   checked_value += ','+this.value;
	  }

 });
  return checked_value;
 
}
function get_checked_title()
{
   var  checked_title = '';
   $('[name = "check_article_list"]:checked').each(function(){
      if(checked_title == '')
	  {
	     checked_title = $(this).attr('title');
	  }else
	  {
	   checked_title += '\n'+$(this).attr('title');
	  }

   });
  return checked_title;
}

</script>
</head>
<body style="width:710px;">
<form method="POST" action="/wondershare/support_right_recommend.php?action=article_list">
    <img height="22" border="0" width="26" alt="SEARCH" src="../images/icon_search.gif">
	<span style="margin-left:2px; font-size:13px; ">文章ID：</span><input type="text" name="re_ar_id" id="re_ar_id"   value="<{$search_array.ar_id}>" style="width:50px;" />
	<span style="margin-left:2px; font-size:13px; ">文章标题：</span><input type="text" name="re_ar_title" id="re_ar_title"  value="<{$search_array.ar_title}>" 
	style="width:150px;" />
	<span style="margin-left:40px; font-size:13px">是否已选：</span>
    <select name="is_show">
	<option value="-1"  <{if $search_array.is_show == -1 }> selected="selected"  <{/if}> >请选择</option>
	<option value="0" <{if $search_array.is_show == 0 }> selected="selected"  <{/if}>  >否</option>
	<option value="1"  <{if $search_array.is_show == 1 }> selected="selected"  <{/if}>  >是</option>
	</select>
	<input type="hidden" name="web_type" value="<{$search_array.web_type}>" >
	<input type="hidden" name="recommend_id" id="recommend_id" value="<{$check_strid}>" >
	<input type="hidden" name="topic_cat_id" id="topic_cat_id" value="<{$search_array.topic_cat_id}>" >
     <input type="submit" class="button"  name="sub_search" value=" 搜索 ">
</form>
<form>
 <{if count($article_info)<=0}>
  <h2 style="text-align:center;">没有数据</h2>
  <{else}>
   <table width="100%" cellspacing="1" cellpadding="2" id="list-table" class="list-div"  style="margin-top:10px;" >
    <tr>
      <th width="10%">文章ID</th>
	   <th width="40%">文章标题</th>
	   <th width="30%">文章短标题</th>
       <th width="20%">选择</th>
    </tr>
    <{foreach from=$article_info key=key item=info}>
	  <tr>
      <td width="10%"><{$info.ar_id}></td>
      <td width="40%"><{$info.ar_title|escape}></td>
      <td width="30%"><{$info.ar_subtitle|escape}></td>
	  <td width="20%"><{$info.checkbox}></td>
	  </tr>
    <{/foreach}>
	<!--<tr >
	<td colspan="11"  ><div style="margin-left:10px;">
    <{$page_url}> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 共有 <span id="total"><{$total}> </span>条记录</div></td>
	</tr>-->
  </table>
<{/if}>
</form>
</body>
</html>
